package com.gxx.domain;

import java.util.Scanner;

public class Test2 {
public static void main(String[] args) {
	Scanner sc = new Scanner(System.in);
	int n = sc.nextInt();
	int a[] = new int[n];
	for (int i = 0; i < a.length; i++) {
		a[i]=sc.nextInt();
	}
	int max = 0;
	for (int i = 0; i < a.length; i++) {
		if (a[i]<max) {
			max=a[i];
		}
	}
	int i = 1 ;
	int temp = 0;
	while (true) {
		for (int j = 0; j < a.length; j++) {
			if (max*i%a[j]!=0) {
				temp++;
			}
		}if (temp==0) {
			break;
		}
		i++;
		temp=0;
	}
	System.out.println(max*i);
}
}
